From eeecc98c5b22d75b19e65cd122562e6e69eed14e Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 11 Nov 2022 20:04:48 -0800 Subject: style tweaks --- .../[username]/transactions/[...page]/+page.svelte | 43 +++++++++++++++------- 1 file changed, 29 insertions(+), 14 deletions(-) (limited to 'src/routes/(app)/[username]/transactions') diff --git a/src/routes/(app)/[username]/transactions/[...page]/+page.svelte b/src/routes/(app)/[username]/transactions/[...page]/+page.svelte index c7007af4..5d8377d4 100644 --- a/src/routes/(app)/[username]/transactions/[...page]/+page.svelte +++ b/src/routes/(app)/[username]/transactions/[...page]/+page.svelte @@ -71,9 +71,13 @@ {$t('user.transactions.header')} -
-
- {#each presets as { start, end, title }, i}
-
@@ -111,10 +118,10 @@ {/if} -
+
{#each $txns as tx} -
-
+
+
{f(tx.amount * (tx.rate / sats), tx.currency)} @@ -136,24 +143,32 @@
-
+
{#if tx.with}
- +
{tx.with.username}
{:else} -
- {tx.amount > 0 ? (tx.confirmed ? 'Received' : 'Pending') : 'Sent'} +
+ {#if tx.network === 'lightning'} +
⚡️
+ {:else} + + {/if} + +
+ {tx.amount > 0 ? (tx.confirmed ? 'Received' : 'Pending') : 'Sent'} +
{/if}
-
+
{format(parseISO(tx.createdAt), 'h:mm aaa')}
-- cgit v1.2.3